/**
 * 基础路由
 * @type { *[] }
 */
export const constantRouterMap = [
  {
    path: '/',
    component: () => import('@/views/layouts/base'),
    redirect: '/main',
    meta: {
      title: '首页',
      keepAlive: false
    },
    children: [
      {
        path: '/login',
        name: 'login',
        component: () => import('@/views/login/login'),
        meta: { title: '登陆', keepAlive: false ,index:1},
        
      },
      {
        path: '/register',
        name: 'register',
        component: () => import('@/views/login/register'),
        meta: { title: '注册', keepAlive: false,index:2 },
        
      },
      {
        path: '/password',
        name: 'password',
        component: () => import('@/views/login/password'),
        meta: { title: '修改密码', keepAlive: false,index:2 },
        
      },


      {
        path: '/main',
        name: 'main',
        component: () => import('@/views/home/main'),
        meta: { title: '主页', keepAlive: false ,index:3}
      },
      {
        path: '/submitOk',
        name: 'submitOk',
        component: () => import('@/views/home/submitOk'),
        meta: { title: '提交成功', keepAlive: false ,index:4}
      },
      {
        path: '/monthlyAccount',
        name: 'monthlyAccount',
        component: () => import('@/views/home/monthlyAccount'),
        meta: { title: '月结账户验证码', keepAlive: false ,index:4}
      },
      
      {
        path: '/addressBook',
        name: 'addressBook',
        component: () => import('@/views/addressBook/baseList'),
        meta: { title: '通讯录', keepAlive: false ,index:4}
      },
      {
        path: '/editItem',
        name: 'editItem',
        component: () => import('@/views/addressBook/editItem'),
        meta: { title: '添加', keepAlive: false ,index:5}
      },

      {
        path: '/myOrder',
        name: 'myOrder',
        component: () => import('@/views/order/myOrder'),
        meta: { title: '我的订单', keepAlive: false ,index:4}
      },

      {
        path: '/orderDetails',
        name: 'orderDetails',
        component: () => import('@/views/order/orderDetails'),
        meta: { title: '订单详情', keepAlive: false ,index:5}
      },   
    ]
  }
]
